import Vue from 'vue';
import DashboardPlugin from './plugins/dashboard-plugin';
import App from './App.vue';
import axios from "axios";
import ElementUI from 'element-ui';

// router setup
import router from './routes/router';
// plugin setup
Vue.use(DashboardPlugin);
Vue.use(ElementUI);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App),
  router
});
// axios设置
axios.interceptors.response.use(function (response) {
  let res = response.data;
  console.log(response.status)
  if (response.status == 200) {
    return res;
  }
});

